package com.cinc.ebc.mm.enums;

/**
 * 移动业务类型
 */
public enum MoveTypeEnum {

    TYPE101("101", "采购收货", false),

    TYPE102("102", "采购收货冲销", true),

    TYPE122("122", "采购退货", false),

    TYPE123("123", "采购退货冲销", true),

    TYPE201("201", "物资领料", false),

    TYPE202("202", "物资退料/冲销", true),

    TYPE261("261", "生产订单领料", false),

    TYPE262("262", "生产订单退料/冲销", true),

    TYPE313("313", "调拨入库", false),

    TYPE314("314", "调拨出库", false),

    TYPE601("601", "销售发货", false),

    TYPE602("602", "销售退货", false),

    TYPE701("701", "盘盈入库", false),

    TYPE702("702", "盘亏出库", false),
    ;

    private String code;

    private String text;

    // 冲销标志
    private boolean cancelFlag;

    private MoveTypeEnum(String code, String text, boolean cancelFlag) {
        this.code = code;
        this.text = text;
        this.cancelFlag = cancelFlag;
    }

    public String getCode() {
        return code;
    }

    public String getText() {
        return text;
    }

    public boolean getCancelFlag() {
        return cancelFlag;
    }

}
